Function AddField(FieldName As String, [FieldType]) As Boolean
Use this method to add fields to a rowset before adding data. The rowset must have fields defined before data can be added using the AddRows method.
FieldName
A string value specifying the name of the field.
FieldType
An optional value specifying the data type that will be contained in this field. Use Visual Basic VarType constants to specify the data type. If this value is omitted, the vbVariant type will be used.
A Boolean value indicating whether or not the field was successfully added to the Rowset.
cdoRowset.AddField "Order ID", vbString
cdoRowset.AddField "Company Name", vbString
cdoRowset.AddField "Order Amount", vbCurrency
Seagate Software IMG Holdings, Inc. http://www.seagatesoftware.com Support services: http://support.seagatesoftware.com |